home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 January / Chip_2003-01_cd1.bin / oddech / bechpack / bechpack.exe / scripts / DefineButton2_622 / BUTTONCONDACTION on(press, keyPress Space).as next >
Text File  |  2002-10-29  |  382b  |  21 lines

  1. on(press, keyPress "<Space>"){
  2.    i = 1;
  3.    if(Number(start) == Number(true))
  4.    {
  5.       while(Number(count) >= Number(i))
  6.       {
  7.          tellTarget("/" add i)
  8.          {
  9.             gotoAndPlay(2);
  10.          }
  11.          i = Number(i) + 1;
  12.       }
  13.       if(1 < Number(level))
  14.       {
  15.          call("Wall");
  16.       }
  17.       call("Add");
  18.       start = false;
  19.    }
  20. }
  21.